<template>
  <div>
      <p v-text="str"></p>
      <p v-html="str">{{30}}</p>
  </div>
</template>

<script>
export default {
    data(){
        return{
            str:'<h2>我是一个h2标签</h2>'
        }
    }
}
</script>

<style>

</style>